/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dale2507.gates.commands;

import dale2507.gates.configurator.ui.Configurator;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;

/**
 *
 * @author Dale
 */
public class ConfiguratorCommand implements CommandExecutor {

    @Override
    public boolean onCommand(CommandSender cs, Command cmnd, String string, String[] strings) {
        if (cs instanceof ConsoleCommandSender) {
            new Configurator();
            return true;
        } else {
            return false;
        }
    }
    
}
